package com.itheima.interface_case.students_manager;

public class Test {
    public static void main(String[] args) {
        // 方案1
//        ClassManager classManager = new ClassManager();
//        classManager.addStudent(new Student("熊大", "男", 47));
//        classManager.addStudent(new Student("熊二", "男", 23));
//        classManager.addStudent(new Student("熊三", "男", 10));
//        classManager.addStudent(new Student("熊四", "男", 89));
//
//        classManager.printStudents();
//        classManager.printAvgScore();

        // 方案2
        ClassManager2 classManager2 = new ClassManager2();
        classManager2.addStudent(new Student("熊大", "男", 47));
        classManager2.addStudent(new Student("熊二", "男", 23));
        classManager2.addStudent(new Student("熊三", "男", 10));
        classManager2.addStudent(new Student("熊四", "男", 89));

        classManager2.printStudents();
        classManager2.printAvgScore();
    }
}
